<?php

class Jstag {
	public function _alert($str) {
		echo "<script language='javascript'>alert('$str');</script>";
	}
	
	public function _location($url) {
		echo "<script language='javascript'>window.close;window.location.href='$url'</script>";
	}
}